package io.sqrtqiezi.spark.dataframe

import org.apache.spark.sql.SparkSession

object Hints {
  def main(args: Array[String]): Unit = {
    val spark = SparkSession.builder()
      .master("local")
      .appName("Hints test")
      .getOrCreate()

    val q = spark.range(1, 100).hint("myHint", 100, true)
    println(q.queryExecution.logical)
    println(q.queryExecution.analyzed)
  }
}
